package com.ssm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ssm.pojo.pay.Pay;
import com.ssm.pojo.pay.PayResult;
import com.ssm.service.PayService;

@Controller
public class PayController {
	  @Autowired
	  PayService payService;
	
	  // 订单支付 API
	  @RequestMapping(value="/api/v1/order/PayMent",method = RequestMethod.POST)
	  @ResponseBody
	  public PayResult add(Pay pay) {
		 return payService.add(pay);
	  }
}
